src = $(wildcard ./*.cpp)
obj = $(patsubst %.cpp,%,$(src))
mySet = -Wall -g -lpthread
11 = -std=c++11
myHelper = wrap.cpp
ALL:$(obj)
$(obj):%:%.cpp
	g++ $(11) $< $(myHelper) -o $@ $(mySet)
clean:
	-rm -rf $(obj) a.out
.PHONY: clean ALL
